package com.wyr.admin;

import cn.dev33.satoken.SaManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * 主项目启动类
 *
 * @author wangyiren
 * @version 1.0
 * &#064;title AdminApplication
 * &#064;description
 * &#064;date 2025/03/06 14:26
 */
@ComponentScan("com.wyr.*")
@MapperScan(basePackages = {"com.wyr.dao.mapper", "com.wyr.admin.mapper"})
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, FreeMarkerAutoConfiguration.class})
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
    }
}
